package com.unknow.first.app.version.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.unknow.first.api.common.CommonResult;
import com.unknow.first.app.version.entity.AppVersion;
import com.unknow.first.app.version.vo.AppVersionParamVO;
import com.unknow.first.app.version.vo.AppVersionResultVO;
import java.util.Map;
import org.cloud.exception.BusinessException;

public interface AppVersionService extends IService<AppVersion> {


    int insertSelective(AppVersion record);

    int updateByPrimaryKeySelective(AppVersion record);

    /**
     * 获取安卓ios最新版本
     *
     * @return
     */

    Map<String, AppVersionResultVO> getAndroidAndIos(String appName);

    /**
     * 是否有新版本 没有就返回null
     *
     * @return
     */

    AppVersionResultVO isNewVersion(String version, int appType, Long userId, String appName);

    /**
     * 添加版本
     *
     * @param vo
     * @return
     */
    public void addVersion(AppVersionParamVO vo) throws BusinessException;

    /**
     * 修改版本信息
     *
     * @param vo
     * @return
     */
    public void updateVersion(AppVersionParamVO vo) throws BusinessException;

}
